package org.zhadoop.stream.cql.semanticanalyzer.parser.visitor;

import org.zhadoop.stream.cql.semanticanalyzer.parser.CQLParser.KeyValuePropertyContext;
import org.zhadoop.stream.cql.semanticanalyzer.parser.context.StreamPropertiesContext;

public class StreamPropertiesVisitor extends AbsCQLParserBaseVisitor<StreamPropertiesContext>{

	private StreamPropertiesContext context = null;
	
	public StreamPropertiesVisitor() {
		context = new StreamPropertiesContext();
	}
	
	@Override
	protected StreamPropertiesContext defaultResult() {
		return context;
	}
	
	@Override
	public StreamPropertiesContext visitKeyValueProperty(KeyValuePropertyContext ctx) {
		 KeyValuePropertyVisitor visitor = new KeyValuePropertyVisitor();
		 context.getProperties().add(visitor.visit(ctx));
		return context;
	}

}
